
class PageInfoVo<T>{
  int? count;
  List<T>? data;
  int? page;
  int? pageSize;
  int? totalPage;

  //计算总页数
  int calcTotalPage(){
    int countNum = (count ?? 0);
    int pageSizeNum = (pageSize ?? 30); //默认30条
    return ((countNum+pageSizeNum-1)/pageSizeNum).floor();
  }
}